Integrand size = 40, antiderivative size = 103 \[ \int \frac {A+B \sin (e+f x)}{\sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}} \, dx=\frac {(A+B) \cos (e+f x)}{2 f \sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}}+\frac {(A-B) \text {arctanh}(\sin (e+f x)) \cos (e+f x)}{2 c f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}} \]
[Out]
Time = 0.20 (sec) , antiderivative size = 103, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.075, Rules used = {3051, 2820, 3855} \[ \int \frac {A+B \sin (e+f x)}{\sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}} \, dx=\frac {(A-B) \cos (e+f x) \text {arctanh}(\sin (e+f x))}{2 c f \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}}+\frac {(A+B) \cos (e+f x)}{2 f \sqrt {a \sin (e+f x)+a} (c-c \sin (e+f x))^{3/2}} \]
[In]
[Out]
Rule 2820
Rule 3051
Rule 3855
Rubi steps \begin{align*} \text {integral}& = \frac {(A+B) \cos (e+f x)}{2 f \sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}}+\frac {(A-B) \int \frac {1}{\sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}} \, dx}{2 c} \\ & = \frac {(A+B) \cos (e+f x)}{2 f \sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}}+\frac {((A-B) \cos (e+f x)) \int \sec (e+f x) \, dx}{2 c \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}} \\ & = \frac {(A+B) \cos (e+f x)}{2 f \sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}}+\frac {(A-B) \text {arctanh}(\sin (e+f x)) \cos (e+f x)}{2 c f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}} \\ \end{align*}
Time = 2.33 (sec) , antiderivative size = 191, normalized size of antiderivative = 1.85 \[ \int \frac {A+B \sin (e+f x)}{\sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}} \, dx=\frac {\left (A+B+(-A+B) \log \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^2+(A-B) \log \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^2\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )}{2 f \sqrt {a (1+\sin (e+f x))} (c-c \sin (e+f x))^{3/2}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(464\) vs. \(2(91)=182\).
Time = 3.12 (sec) , antiderivative size = 465, normalized size of antiderivative = 4.51
method | result | size |
default | \(\frac {A \sin \left (f x +e \right ) \cos \left (f x +e \right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )-A \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right ) \sin \left (f x +e \right ) \cos \left (f x +e \right )-A \left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )+A \left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right )-B \sin \left (f x +e \right ) \cos \left (f x +e \right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )+B \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right ) \sin \left (f x +e \right ) \cos \left (f x +e \right )+B \left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )-B \left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right )-A \sin \left (f x +e \right ) \cos \left (f x +e \right )+A \left (\cos ^{2}\left (f x +e \right )\right )-A \cos \left (f x +e \right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )+A \cos \left (f x +e \right ) \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right )-B \cos \left (f x +e \right ) \sin \left (f x +e \right )+B \left (\cos ^{2}\left (f x +e \right )\right )+B \cos \left (f x +e \right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )-B \cos \left (f x +e \right ) \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right )-A \sin \left (f x +e \right )-B \sin \left (f x +e \right )-A -B}{2 c f \left (-\cos \left (f x +e \right )+\sin \left (f x +e \right )-1\right ) \sqrt {-c \left (\sin \left (f x +e \right )-1\right )}\, \sqrt {a \left (1+\sin \left (f x +e \right )\right )}}\) | \(465\) |
parts | \(\frac {A \left (\left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )-\cos \left (f x +e \right ) \sin \left (f x +e \right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )-\left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right )+\cos \left (f x +e \right ) \sin \left (f x +e \right ) \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right )+\cos \left (f x +e \right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )-\ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right ) \cos \left (f x +e \right )-\left (\cos ^{2}\left (f x +e \right )\right )+\cos \left (f x +e \right ) \sin \left (f x +e \right )+\sin \left (f x +e \right )+1\right )}{2 f \left (\cos \left (f x +e \right )-\sin \left (f x +e \right )+1\right ) c \sqrt {-c \left (\sin \left (f x +e \right )-1\right )}\, \sqrt {a \left (1+\sin \left (f x +e \right )\right )}}-\frac {B \left (\left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )-\cos \left (f x +e \right ) \sin \left (f x +e \right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )-\left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right )+\cos \left (f x +e \right ) \sin \left (f x +e \right ) \ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right )+\cos \left (f x +e \right ) \ln \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )-\ln \left (\csc \left (f x +e \right )-\cot \left (f x +e \right )-1\right ) \cos \left (f x +e \right )+\cos ^{2}\left (f x +e \right )-\cos \left (f x +e \right ) \sin \left (f x +e \right )-\sin \left (f x +e \right )-1\right )}{2 f \left (\cos \left (f x +e \right )-\sin \left (f x +e \right )+1\right ) c \sqrt {-c \left (\sin \left (f x +e \right )-1\right )}\, \sqrt {a \left (1+\sin \left (f x +e \right )\right )}}\) | \(495\) |
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 337, normalized size of antiderivative = 3.27 \[ \int \frac {A+B \sin (e+f x)}{\sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}} \, dx=\left [-\frac {{\left ({\left (A - B\right )} \cos \left (f x + e\right ) \sin \left (f x + e\right ) - {\left (A - B\right )} \cos \left (f x + e\right )\right )} \sqrt {a c} \log \left (-\frac {a c \cos \left (f x + e\right )^{3} - 2 \, a c \cos \left (f x + e\right ) + 2 \, \sqrt {a c} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c} \sin \left (f x + e\right )}{\cos \left (f x + e\right )^{3}}\right ) + 2 \, \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c} {\left (A + B\right )}}{4 \, {\left (a c^{2} f \cos \left (f x + e\right ) \sin \left (f x + e\right ) - a c^{2} f \cos \left (f x + e\right )\right )}}, -\frac {{\left ({\left (A - B\right )} \cos \left (f x + e\right ) \sin \left (f x + e\right ) - {\left (A - B\right )} \cos \left (f x + e\right )\right )} \sqrt {-a c} \arctan \left (\frac {\sqrt {-a c} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}}{a c \cos \left (f x + e\right ) \sin \left (f x + e\right )}\right ) + \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c} {\left (A + B\right )}}{2 \, {\left (a c^{2} f \cos \left (f x + e\right ) \sin \left (f x + e\right ) - a c^{2} f \cos \left (f x + e\right )\right )}}\right ] \]
[In]
[Out]
\[ \int \frac {A+B \sin (e+f x)}{\sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}} \, dx=\int \frac {A + B \sin {\left (e + f x \right )}}{\sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )} \left (- c \left (\sin {\left (e + f x \right )} - 1\right )\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
\[ \int \frac {A+B \sin (e+f x)}{\sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}} \, dx=\int { \frac {B \sin \left (f x + e\right ) + A}{\sqrt {a \sin \left (f x + e\right ) + a} {\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 204 vs. \(2 (91) = 182\).
Time = 0.36 (sec) , antiderivative size = 204, normalized size of antiderivative = 1.98 \[ \int \frac {A+B \sin (e+f x)}{\sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}} \, dx=\frac {\frac {{\left (A \sqrt {a} - B \sqrt {a}\right )} \log \left (-\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 1\right )}{a c^{\frac {3}{2}} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} - \frac {2 \, {\left (A \sqrt {a} - B \sqrt {a}\right )} \log \left ({\left | \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) \right |}\right )}{a c^{\frac {3}{2}} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} + \frac {A \sqrt {a} + B \sqrt {a}}{{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - 1\right )} a c^{\frac {3}{2}} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}}{4 \, f} \]
[In]
[Out]
Timed out. \[ \int \frac {A+B \sin (e+f x)}{\sqrt {a+a \sin (e+f x)} (c-c \sin (e+f x))^{3/2}} \, dx=\int \frac {A+B\,\sin \left (e+f\,x\right )}{\sqrt {a+a\,\sin \left (e+f\,x\right )}\,{\left (c-c\,\sin \left (e+f\,x\right )\right )}^{3/2}} \,d x \]
[In]
[Out]